import React, {Component} from 'react';
import PropTypes from 'prop-types'
import './userItem.scss'
class UserItem extends Component {
    static propTypes = {
        userInfo: PropTypes.object.isRequired
    }
    render() {
        return (
            <div className={"user-item"}>
                <img src={this.props.userInfo.avatar_url} />
                <div>{this.props.userInfo.user_name}</div>
            </div>
        );
    }
}

export default UserItem;